|
FILE OPEN
This command will return an integer value of one if the file specified by the file number is open, otherwise zero is returned.
Return Integer=FILE OPEN(File Number)
File Number
Integer
The file number of a open file
Will return an integer value of one if the file specified by the file number is open, otherwise zero is returned
cls
open to read 1,"data.dat"
if file open(1)=1
while file end(1)=0
read string 1,a$
print "string= "+a$
endif
endwhile
close file 1
do
loop
end
FILE Commands Menu
Index
|